Pyserial only communicate to Arduino when there is a user input